Add sysroot.bootloader repo config key
authorRobert Fairley <rfairley@redhat.com>
Thu, 14 Feb 2019 21:18:01 +0000 (16:18 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 1 Mar 2019 21:20:35 +0000 (21:20 +0000)
commit21ebc7d21edd00c3fe0ce80ea68ba3f8f5e41ae3
treefb604c6d2c8ee231f7ce859bb2336d883fd41ccc
parent99cf13b22519e88d6cce22379d67b50bf6a2aa6b
Add sysroot.bootloader repo config key

The sysroot.bootloader key configures the bootloader
that OSTree uses when deploying a sysroot. Having this key
allows specifying behavior not to use the default bootloader
backend code, which is preferable when creating a first
deployment from the sysroot (#1774).

As of now, the key can take the values "auto" or "none". If
the key is not given, the value defaults to "auto".

"auto" causes _ostree_sysroot_query_bootloader() to be used
when writing a new deployment, which is the original behavior
that dynamically detects which bootloader to use.

"none" avoids querying the bootloader dynamically. The BLS
config fragments are still written to
sysroot/boot/loader/entries for use by higher-level software.

More values can be supported in future to specify a single
bootloader, different behavior for the bootloader code, or
a list of bootloaders to try.

Resolves: #1774

Closes: #1814
Approved by: jlebon
Makefile-tests.am
man/ostree.repo-config.xml
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c
src/libostree/ostree-repo.h
src/libostree/ostree-sysroot-deploy.c
tests/libtest.sh
tests/test-admin-deploy-none.sh [new file with mode: 0755]